package practice07;

public class Student extends Person{
    private Klass klass;

    public Student(Klass klass) {
        this.klass = klass;
    }

    public Student(String name, int age, Klass klass) {
        super(name, age);
        this.klass = klass;
    }

    public Klass getKlass() {

        return klass;
    }

    public void setKlass(Klass klass) {
        this.klass = klass;
    }

    @Override
    public String toString() {
        return "Student{" +
                "klass=" + klass +
                '}';
    }

    public String introduce(){
        return super.introduce()+" I am a Student. I am at Class 2.";
    }


}
